// RefreshDlg.cpp : implementation file
//

#include "stdafx.h"
#include "SinaBlog.h"
#include "RefreshDlg.h"
#include <afxpriv.h>
#include <afxpriv2.h>
#include <atlbase.h>

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CRefreshDlg dialog


CRefreshDlg::CRefreshDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CRefreshDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CRefreshDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CRefreshDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CRefreshDlg)
	DDX_Control(pDX, IDC_STATIC_1, m_ctrlStatic);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CRefreshDlg, CDialog)
	//{{AFX_MSG_MAP(CRefreshDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRefreshDlg message handlers

BOOL CRefreshDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	if (m_ctrlStatic.Load(MAKEINTRESOURCE(IDR_REFRESH),_T("GIF")))
	{
		CSize size = m_ctrlStatic.GetSize();
		m_ctrlStatic.MoveWindow(0,0, size.cx, size.cy);
		SetWindowPos(NULL,0,0,size.cx, size.cy,SWP_NOMOVE); 
		m_ctrlStatic.SetBgMode(CPictureEx::BackgroundMode::TransparentBg, RGB(0, 0, 0));
		m_ctrlStatic.Draw();
	}

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

